home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11559 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: mudskipper.cac.psu.edu!user
  2. From: fcusack@tdx.org (frank.)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Q: how to create an Object without creating the whole object
  5. Date: Thu, 14 Mar 1996 21:06:04 -0400
  6. Organization: Soylent Green is People!!
  7. Message-ID: <fcusack-1403962106040001@mudskipper.cac.psu.edu>
  8. References: <31454EC9.167E@imacsg2.epfl.ch> <4i9eqo$dtu@uuneo.neosoft.com>
  9. NNTP-Posting-Host: mudskipper.cac.psu.edu
  10.  
  11. In article <4i9eqo$dtu@uuneo.neosoft.com>, Wmatthew@lan-aces.com (W.
  12. Matthews) wrote:
  13.  
  14. > >
  15. > >Say you've got a class A which is composed of say 10 other class
  16. > >(inheritance multiple and single whatever). But if I create an object
  17. > >with new this class 'explodes' (all the member functions are created of
  18. > >all the parentclasses) so you want the initialize only those parent
  19. > >class you need say only class B.
  20.  
  21. Not sure I understand. Member functions are only created once for any
  22. class, no matter how many instances there are, AFAIK.
  23.  
  24. ~Frank
  25.  -- I am Pentium of Borg.  Division is futile.  You will be approximated. --
  26.  -- PGP ID: 1C0F6685 | NCB#56 | Visit me --> http://www.tdx.org/~fcusack/ --
  27.